<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>


<!--
<form role="form" action = "/userRegister/submit" method="post">
    账号：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&thinsp;<input type="text" id="name" name = "name"> <br>
    密码：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&thinsp;<input type="password" id = "password" name = "password"> <br>
    重新输入密码：<input type="password" id = "password1" name = "password"> <br>
    <input type="submit" id = "register" value = "注册">
</form>
-->


<div>
    <form action="/userLogin/submit" method="post" onsubmit="return myFunction()">
        <table>
            <tr>
                <td><span>用户名：</span></td>
                <td><input id="username" type="text" name="name" placeholder="请输入1-5个汉字" ><span id="d1"></span></td>
            </tr>
            <tr>
                <td>
                    <span>密码：</span>
                </td>
                <td><input id="password" type="password" name="password" placeholder="请输入5-12个字母或数字" ><span id="d2"></span></td>
            </tr>
        </table>
        <input id="s1" type="submit" value="登录">
    </form>
    <form action="/register" method="post" >
        <input id="s2" type="submit" value="注册" >
    </form>
</div>

</body>
</html>
<script>
    function myFunction() {
        alert("The form was submitted");
    }
</script>